home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / util / moni / Scout-src.lha / netinclude / pwd.h < prev    next >
C/C++ Source or Header  |  2002-09-16  |  928b  |  36 lines

  1. #ifndef PWD_H
  2. #define PWD_H \
  3.        "$Id: pwd.h,v 1.1.1.1 2001/11/26 22:21:13 tboeckel Exp $"
  4. /*
  5.  *    Definitions of uid_t and passwd structure for 32 bit C compilers
  6.  *
  7.  *      Copyright © 1994 AmiTCP/IP Group,
  8.  *                       Network Solutions Development, Inc.
  9.  *                       All rights reserved.
  10.  */
  11.  
  12. #ifndef SYS_TYPES_H
  13. #include <sys/types.h>
  14. #endif
  15.  
  16. /* The passwd structure */
  17. struct passwd
  18. {
  19.   char  *pw_name;               /* Username */
  20.   char  *pw_passwd;             /* Encrypted password */
  21.   uid_t  pw_uid;                /* User ID */
  22.   gid_t  pw_gid;                /* Group ID */
  23.   char  *pw_gecos;        /* Real name etc */
  24.   char  *pw_dir;                /* Home directory */
  25.   char  *pw_shell;              /* Shell */
  26. };
  27.  
  28. struct passwd *getpwuid(uid_t uid);
  29. struct passwd *getpwnam(const char *name);
  30.  
  31. void setpwent(void);
  32. struct passwd *getpwent(void);
  33. void endpwent(void);
  34.  
  35. #endif /* PWD_H */
  36.